import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 

s.connect(('192.168.0.65', 30999))                      

while True:                                           

    data = input('The data your send:')                 

    if data == 'quit':                               
        break

    s.send(data.encode())                             

    print(s.recv(1024).decode('utf-8'))               

s.send(b'quit')                                       

s.close()                                             
